/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package structure;

import java.util.ArrayList;

/**
 *
 * @author Gary Furlong
 */
public class DataFile {
    private int numberOfVariables;
    private int numberOfRoots;
    private int numberOfDataPoints;
    private ArrayList<Variable> variables = new ArrayList();
    private ArrayList<DataPoint> dataPoints = new ArrayList();

    public DataFile(int nv, int roots, int ndp){
        numberOfVariables = nv;
        numberOfRoots = roots;
        numberOfDataPoints = ndp;
    }

    public DataFile(DataFile df){
        numberOfVariables = df.getNumberOfVariables();
        numberOfRoots = df.getNumberOfRoots();
        numberOfDataPoints = df.getNumberOfDataPoints();
    }

    public void setVariables(ArrayList<Variable> var){
        variables = var;
    }

    public void setDataPoints(ArrayList<DataPoint> dp){
        dataPoints = dp;
    }

    public void addVariable(Variable var){
        variables.add(var);
    }

    public void addDataPoint(DataPoint dp){
        dataPoints.add(dp);
    }

    public ArrayList<Variable> getVariables(){
        return variables;
    }

    public ArrayList<DataPoint> getDataPoints(){
        return dataPoints;
    }

    public int getNumberOfVariables(){
        return numberOfVariables;
    }

    public int getNumberOfRoots(){
        return numberOfRoots;
    }

    public int getNumberOfDataPoints(){
        return numberOfDataPoints;
    }
}
